package pl.puntin.punclient.messages;

public class JoinRoomMessage extends Message {

	byte roomId;
	

	/**
	 * @param roomId
	 */
	public JoinRoomMessage(final byte roomId)
	{
		this.roomId = roomId;
	}

	@Override
	public byte getType() {
		return MessageTypes.C_JOIN_ROOM;
	}

	@Override
	public byte[] getByteForm()
	{
		byte[] byteForm = new byte[getLenght()];
		byteForm[0] = getType();
		byteForm[1] = roomId;
		return byteForm;
	}

}
